namespace panda {
  /**
   * canvas鼠标事件
   */
  export class CanvasMouseEvent extends CanvasInputEvent {
    public button:number; // 0:鼠标左键，1鼠标中键，2鼠标右键
    public canvasPosition:Vec2; // 基于canvas坐标系位置
    public localPosition:Vec2;

    public constructor (canvasPos:Vec2, button:number, altKey:boolean = false,
      ctrlKey:boolean = false, shiftKey:boolean = false ){
      super(altKey,ctrlKey,shiftKey);
      this.canvasPosition = canvasPos;
      this.button = button;
      // 暂时创建一个Vec2对象
      this.localPosition = Vec2.create(0,0);
    }
  }
}